home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / CodeWarrior Lite / Metrowerks C⁄C++ Lite / Headers / System Extras Headers / GX Headers / layout edit library.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-02  |  4.5 KB  |  74 lines  |  [TEXT/MMCC]

  1. /*
  2.     File:        layout edit library.h
  3.  
  4.     Copyright:    © 1984-1994 by Apple Computer, Inc., all rights reserved.
  5.  
  6.     WARNING
  7.     This file was auto generated by the interfacer tool. Modifications
  8.     must be made to the master file.
  9.  
  10. */
  11.  
  12. #ifndef layoutEditLibraryIncludes
  13. #define layoutEditLibraryIncludes
  14.  
  15. #include <Types.h>
  16. /*    #include <ConditionalMacros.h>                                */
  17. /*    #include <MixedMode.h>                                        */
  18. /*        #include <Traps.h>                                        */
  19. #include <Memory.h>
  20.     #ifndef selectionLibraryIncludes
  21. #include "selection library.h"
  22. /*    #include "layout types.h"                                    */
  23. /*        #include "math types.h"                                    */
  24. /*        #include "graphics types.h"                                */
  25.     #endif
  26.  
  27.     #ifndef layoutTypesIncludes
  28.     #endif
  29.  
  30.     #ifdef __cplusplus
  31. extern "C" {
  32.     #endif
  33.  
  34. typedef Handle LayoutEditHandle;
  35.  
  36. extern LayoutEditHandle NewLayoutEditHandle(long textRunCount, const short textRunLengths[], const void *text[], long styleRunCount, const short styleRunLengths[], const gxStyle styles[], long levelRunCount, const short levelRunLengths[], const short levels[], gxLayoutOptions *layoutOptions, gxPoint *position, gxStyle defaultStyle);
  37. extern LayoutEditHandle LayoutEditHandleFromLayout(gxShape layout);
  38. extern long GetLayoutEditHandle(LayoutEditHandle handle, void *text, long *styleRunCount, short styleRunLengths[], gxStyle styles[], long *levelRunCount, short levelRunLengths[], short levels[], gxLayoutOptions *layoutOptions, gxPoint *position);
  39. extern void SetLayoutEditHandle(LayoutEditHandle handle, long textRunCount, const short textRunLengths[], const void *text[], long styleRunCount, const short styleRunLengths[], const gxStyle styles[], long levelRunCount, const short levelRunLengths[], const short levels[], const gxLayoutOptions *layoutOptions, const gxPoint *position);
  40. extern void SetLayoutEditHandleParts(LayoutEditHandle handle, gxByteOffset oldStartOffset, gxByteOffset oldEndOffset, long newTextRunCount, const short newTextRunLengths[], const void *newText[], long newStyleRunCount, const short newStyleRunLengths[], const gxStyle newStyles[], long newLevelRunCount, const short newLevelRunLengths[], const short newLevels[]);
  41. extern void SetLayoutEditHandleSelectedParts(LayoutEditHandle handle, long newTextRunCount, const short newTextRunLengths[], const void *newText[], long newStyleRunCount, const short newStyleRunLengths[], const gxStyle newStyles[], long newLevelRunCount, const short newLevelRunLengths[], const short newLevels[]);
  42. extern void SetLayoutEditHandleShapeParts(LayoutEditHandle handle, gxByteOffset startOffset, gxByteOffset endOffset, gxShape insert);
  43. extern long GetLayoutEditHandleParts(LayoutEditHandle handle, gxByteOffset startOffset, gxByteOffset endOffset, void *text, long *styleRunCount, short styleRunLengths[], gxStyle styles[], long *levelRunCount, short levelRunLengths[], short levels[]);
  44. extern long GetLayoutEditHandleSelectedParts(LayoutEditHandle handle, void *text, long *styleRunCount, short styleRunLengths[], gxStyle styles[], long *levelRunCount, short levelRunLengths[], short levels[]);
  45. extern gxShape GetLayoutEditHandleShapeParts(LayoutEditHandle handle, gxByteOffset startOffset, gxByteOffset endOffset, gxShape dest);
  46. extern void LayoutEditRotateShape(LayoutEditHandle handle, Fixed degrees, Fixed translateX, Fixed translateY);
  47. extern void LayoutEditIdle(LayoutEditHandle handle);
  48. extern void LayoutEditClick(LayoutEditHandle handle, gxPoint hitDown);
  49. extern void LayoutEditActivate(LayoutEditHandle handle);
  50. extern void LayoutEditDeactivate(LayoutEditHandle handle);
  51. extern void LayoutEditKey(LayoutEditHandle handle, char key);
  52. extern void LayoutEditUpdate(LayoutEditHandle handle);
  53. extern SelectionHandle LayoutEditGetSelection(LayoutEditHandle handle);
  54. extern void LayoutEditSetSelection(LayoutEditHandle handle, SelectionOffset start, SelectionOffset end);
  55. extern void LayoutEditSetSelectionHandle(LayoutEditHandle handle, SelectionHandle selection);
  56. extern gxViewPort GetLayoutEditViewPort(LayoutEditHandle handle);
  57. extern void LayoutEditSetStyle(LayoutEditHandle handle, gxStyle newStyle);
  58. extern void LayoutEditIncrementLevel(LayoutEditHandle handle);
  59. extern void LayoutEditDecrementLevel(LayoutEditHandle handle);
  60. extern void LayoutEditSetLevel(LayoutEditHandle handle, long level);
  61. extern void LayoutEditCut(LayoutEditHandle handle);
  62. extern void LayoutEditCopy(LayoutEditHandle handle);
  63. extern void LayoutEditPaste(LayoutEditHandle handle);
  64. extern void LayoutEditClear(LayoutEditHandle handle);
  65. extern void LayoutEditFromScrap(LayoutEditHandle handle);
  66. extern void LayoutEditToScrap(LayoutEditHandle handle);
  67. extern void DisposeLayoutEditHandle(LayoutEditHandle handle);
  68.     #ifdef __cplusplus
  69. }
  70.     #endif
  71.  
  72. #endif
  73.  
  74.